//
//  XYSystem.h
//  ZhaoQiPei
//
//  Created by baiye on 2017/1/24.
//  Copyright © 2017年 XiangYun. All rights reserved.
//

#import <UIKit/UIKit.h>

// 这里的定义最好就放在这里，若挪到XYSystem里定义，会得到错误的数据
#define IS_SCREEN_55_INCH   (CGSizeEqualToSize(CGSizeMake(414, 736), [UIScreen mainScreen].bounds.size) ? YES : NO)
#define IS_SCREEN_47_INCH   (CGSizeEqualToSize(CGSizeMake(375, 667), [UIScreen mainScreen].bounds.size) ? YES : NO)
#define IS_SCREEN_40_INCH   (CGSizeEqualToSize(CGSizeMake(320, 568), [UIScreen mainScreen].bounds.size) ? YES : NO)
#define IS_SCREEN_35_INCH   (CGSizeEqualToSize(CGSizeMake(320, 480), [UIScreen mainScreen].bounds.size) ? YES : NO)
#define SCREEN_WIDTH        [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT       [[UIScreen mainScreen] bounds].size.height

extern const BOOL IOS12_OR_LATER;
extern const BOOL IOS11_OR_LATER;
extern const BOOL IOS10_OR_LATER;
extern const BOOL IOS9_OR_LATER;
extern const BOOL IOS8_OR_LATER;
extern const BOOL IOS7_OR_LATER;
extern const BOOL IOS6_OR_LATER;
extern const BOOL IOS5_OR_LATER;
extern const BOOL IOS4_OR_LATER;
extern const BOOL IOS3_OR_LATER;

extern const BOOL IOS11_OR_EARLIER;
extern const BOOL IOS10_OR_EARLIER;
extern const BOOL IOS9_OR_EARLIER;
extern const BOOL IOS8_OR_EARLIER;
extern const BOOL IOS7_OR_EARLIER;
extern const BOOL IOS6_OR_EARLIER;
extern const BOOL IOS5_OR_EARLIER;
extern const BOOL IOS4_OR_EARLIER;
extern const BOOL IOS3_OR_EARLIER;
